<!doctype html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
    <meta name="description" content="">
    <meta name="author" content="">


    <title>Dashboard Template for Bootstrap</title>

    <!-- Bootstrap core CSS -->
    <link th:href="@{/css/bootstrap.min.css}" rel="stylesheet">

    <!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
    <link th:href="@{/css/assets/css/ie10-viewport-bug-workaround.css}" rel="stylesheet">

</head>
<body>
<div class="table-responsive">
    <form class="form-inline">
        <div class="form-group">
            <label class="sr-only" for="exampleInputAmount">Amount (in dollars)</label>
            <div class="input-group">
                <input type="text" class="form-control" id="exampleInputAmount" placeholder="请输入用户名">
                <div class="input-group-addon">搜索</div>
            </div>
        </div>
        <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#myModal">添加用户</button>
    </form>
    <!-- Modal -->
    <div class="modal fade" id="myModal" tabindex="-1" role="document" aria-labelledby="myModalLabel">
        <div class="modal-dialog" role="document">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                    <h4 class="modal-title" id="myModalLabel">Modal title</h4>
                </div>
                <div class="modal-body">
                    ...
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
                    <button type="button" class="btn btn-primary">Save changes</button>
                </div>
            </div>
        </div>
    </div>
    <table class="table table-striped">
        <thead>
        <tr>
            <th>姓名</th>
            <th>年龄</th>
            <th>手机</th>
            <th>邮箱</th>
            <th>操作</th>
        </tr>
        </thead>
        <tbody>
        <tr th:each="user : ${pageInfo.list}">
            <td th:text="${user.name}"></td>
            <td th:text="${user.age}"></td>
            <td th:text="${user.phone}"></td>
            <td th:text="${user.email}"></td>
            <td>
                <a href="">修改</a>
                <a href="">删除</a>
            </td>
        </tr>
        </tbody>
    </table>
    <ul class="pagination">
        <li>
            <a th:href="@{selectUserList?pageNum=1}" aria-label="首页">
                <span aria-hidden="true">首页</span>
            </a>
        </li>
        <li>
            <a th:href="@{selectUserList?pageNum=${pageInfo.pageNum - 1}}" aria-label="上一页">
                <span aria-hidden="true">&laquo;</span>
            </a>
        </li>
        <li>
            <a th:href="@{selectUserList?pageNum=${pageInfo.pageNum + 1}}" aria-label="下一页">
                <span aria-hidden="true">&raquo;</span>
            </a>
        </li>
        <li>
            <a th:href="@{selectUserList?pageNum=${pageInfo.pages}}" aria-label="尾页">
                <span aria-hidden="true">尾页</span>
            </a>
        </li>
        <li>
            <span th:text="|${pageInfo.pageNum}/${pageInfo.pages} 共${pageInfo.total}条数据|"></span>
        </li>
    </ul>
</div>
<script src="https://code.jquery.com/jquery-1.12.4.min.js"
        integrity="sha384-nvAa0+6Qg9clwYCGGPpDQLVpLNn0fRaROjHqs13t4Ggj3Ez50XnGQqc/r8MhnRDZ"
        crossorigin="anonymous"></script>
<script>window.jQuery || document.write('<script th:src="@{/css/assets/js/vendor/jquery.min.js}"><\/script>')</script>
<script th:src="@{/js/bootstrap.min.js}"></script>
</body>
</html>
